package com.easybuilder.common.base.entity;

import java.io.Serializable;
import java.util.List;

public class Page<T> implements Serializable {

    private static final Long SerializableID = 100L;

    /** 数据总量 */
    private Long total;

    /** 数据 */
    private List<T> list;

    public Page() {
    }

    public Page(Long total, List<T> list) {
        this.total = total;
        this.list = list;
    }


    public Long getTotal() {
        return total;
    }

    public Page<T> setTotal(Long total) {
        this.total = total;
        return this;
    }

    public List<T> getList() {
        return list;
    }

    public Page<T> setList(List<T> list) {
        this.list = list;
        return this;
    }
}
